﻿@using TinyMoocSite.ViewModels
@model HomeworkFullItem

@{
    ViewBag.Title = "我的作业";
    Layout = "~/Views/Student/CoursePageLayout.cshtml";
}

@section Homework { active }

@section RightContainer
{
    <h4>我的作业&raquo;@Model.HomeworkTitle</h4><hr />
    <button type="button" class="btn btn-default" onclick="history.back();">返回</button>
    <br /><br />

    @for (int i = 0; i < Model.Problems.Count; i++)
    {
        ProblemData item = Model.Problems[i];

        <div class="panel panel-success">
            <div class="panel-heading">
                <h3 class="panel-title">第 @(i + 1) 题（题库编号：@item.Id）</h3>
            </div>
            <div class="panel-body">
                @Html.Raw(item.Body)
                <hr />
                <p>A. @item.CandidateFirst</p>
                <p>B. @item.CandidateSecond</p>
                <p>C. @item.CandidateThird</p>
                <p>D. @item.CandidateFourth</p>
                <hr />
                <p>我的答案：@item.MyAnswer &nbsp; &nbsp; 标准答案： @item.CorrectAnswer </p>
            </div>
        </div>
    }
}

